<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>


<style>
    a[target=_blank] {
        background-color: yellow;
    }
</style>


<body>

    <h1>CSS [attribute="value"] 选择器</h1>
    <p>target="_blank" 的链接会有黄色背景：</p>

    <a href="https://www.w3school.com.cn">w3school.com.cn</a>
    <a href="http://www.disney.com" target="_blank">disney.com</a>
    <a href="http://www.wikipedia.org" target="_top">wikipedia.org</a>


</body>

</html>